
<%@ page pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<title>更改密码</title>

<div class="panel panel-headline">
    <div class="panel-heading">
        <h3 class="panel-title">修改密码</h3>
    </div>
    <div class="panel-body">
        <form class="form-horizontal" action="${ctx}/changePwd" method="post" >

            <div class="form-group ${empty oldPwdError?'':'has-error'}">
                <label for="inputEmail3" class="col-sm-2 control-label">旧密码</label>
                <div class="col-sm-4 ">
                    <input name="oldPwd" type="password" class="form-control" id="inputEmail3" placeholder="请输入旧密码">
                </div>
                <c:if test="${not empty oldPwdError}">
                <div class="col-sm-5">
                    <span  class="help-block plull-right">${oldPwdError}</span>
                </div>
                </c:if>
            </div>

            <div class="form-group ${empty newPwdError?'':'has-error'}">
                <label for="inputEmail4" class="col-sm-2 control-label">新密码</label>
                <div class="col-sm-4">
                    <input name="newPwd" type="password" class="form-control" id="inputEmail4" placeholder="请输入新密码">
                </div>
                <c:if test="${not empty newPwdError}">
                <div class="col-sm-5">
                    <span  class="help-block plull-right">${newPwdError}</span>
                </div>
                </c:if>
            </div>

            <div class="form-group ${empty confirmPwdError?'':'has-error'}">
                <label for="inputEmail5" class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-4">
                    <input name="confirmPwd" type="password" class="form-control" id="inputEmail5" placeholder="请输入确认密码">
                </div>
                <c:if test="${not empty confirmPwdError}">
                <div class="col-sm-5">
                    <span  class="help-block plull-right">${confirmPwdError}</span>
                </div>
                </c:if>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary">保存</button>
                </div>
            </div>


        </form>
    </div>
</div>

